package com.xteam.youin_supplier.model;

import com.xteam.youin_supplier.config.RequestAddr;

import java.util.List;

/**
 * Created by Curry on 2015-12-28.
 */
public class TruckList {
    /**
     * flag : true
     * data : [{"car_num":"京A8888","time":"2015-12-25","price":5.75,"icon_url":"1.png","qty":100,"order_id":13},{"car_num":"京A8888","time":"2015-12-24","price":5.75,"icon_url":"1.png","qty":100,"order_id":12},{"car_num":"京A8888","time":"2015-12-17","price":5.75,"icon_url":"1.png","qty":100,"order_id":11},{"car_num":"京A8888","time":"2015-12-02","price":5,"icon_url":"1.png","qty":100,"order_id":1}]
     * msg : 成功
     */
    private boolean flag;
    private List<DataEntity> data;
    private String msg;

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public void setData(List<DataEntity> data) {
        this.data = data;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isFlag() {
        return flag;
    }

    public List<DataEntity> getData() {
        return data;
    }

    public String getMsg() {
        return msg;
    }

    public class DataEntity {
        /**
         * car_num : 京A8888
         * time : 2015-12-25
         * price : 5.75
         * icon_url : 1.png
         * qty : 100
         * order_id : 13
         */
        private String car_num;
        private String time;
        private double price;
        private String icon_url;
        private int qty;
        private int order_id;

        public void setCar_num(String car_num) {
            this.car_num = car_num;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public void setIcon_url(String icon_url) {
            this.icon_url = icon_url;
        }

        public void setQty(int qty) {
            this.qty = qty;
        }

        public void setOrder_id(int order_id) {
            this.order_id = order_id;
        }

        public String getCar_num() {
            return car_num;
        }

        public String getTime() {
            return time;
        }

        public double getPrice() {
            return price;
        }

        public String getIcon_url() {
            return RequestAddr.imageUrl+icon_url;
        }

        public int getQty() {
            return qty;
        }

        public int getOrder_id() {
            return order_id;
        }
    }
}
